import './index.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import 'js/core/fw';
import 'views/subViewRoutes';
import 'views/component/subViewLink/subViewLink';
import userData from 'js/core/userData';
import api from 'js/api/index';
import { i18n } from 'js/core/i18n';

// import zh from 'js/en';
// console.log(JSON.stringify(zh))
// i18n.setLanguage(zh)
let RoutesConfig = require('./routes').default;
let user = userData.get();
let defaultLanguage = window.localStorage.getItem('defaultLanguage');
if (user.Language) {
    i18n.setLanguage(user.Language);
} else if (defaultLanguage && defaultLanguage !== 'undefined') {
    i18n.setLanguage(defaultLanguage);
}

ReactDOM.render(<RoutesConfig />, document.getElementById('app'));




